package com.thedazzler.droidicon.badges;

import com.thedazzler.droidicon.ResourceTable;
import ohos.agp.components.AttrSet;
import ohos.app.Context;

public class AndroidIconBadge extends BaseDroidiconBadge {

    public AndroidIconBadge(Context context) {
        super(context);
    }

    public AndroidIconBadge(Context context, AttrSet attrSet) {
        super(context, attrSet);
    }

    public AndroidIconBadge(Context context, AttrSet attrSet, String styleName) {
        super(context, attrSet, styleName);
    }

    public AndroidIconBadge(Context context, AttrSet attrSet, int resId) {
        super(context, attrSet, resId);
    }

    @Override
    public int resId() {
        return ResourceTable.Media_fa_android;
    }

    @Override
    public int iconColor() {
        return 0xffffffff;
    }

    @Override
    public int backgroundColor() {
        return 0xffa4c639;
    }

    @Override
    public int radius() {
        return 0;
    }

    @Override
    public int padding() {
        float padding = 0;
        try {
            padding = (getContext().getResourceManager().getElement(ResourceTable.Float_badge_padding_80).getFloat());
        } catch (Exception e) {
            e.printStackTrace();
        }
        return (int)padding;
    }

    @Override
    public int width() {
        return 0;
    }

    @Override
    public int height() {
        return 0;
    }

    @Override
    public boolean isCircular() {
        return isCircular=true;
    }
}
